package org.gdpu.model;

/**
 * Created by HEWI2 on 1/22/14.
 */
public enum Monitor {

    NOT_MONITOR {
        public int getMonitor() {
            return 1;
        }
    },
    MONITOR {
        public int getMonitor() {
            return 0;
        }
    };

    public abstract int getMonitor();

    @Override
    public String toString() {
        switch (this) {
            case NOT_MONITOR:
                return "宿舍成员";
            case MONITOR:
                return "舍长";
            default:
                return "Error";
        }
    }
}
